{extend name="public/layout"}
{block name="title"}我要捐赠{/block}
{block name="head"}
<style>
    .banner {
        height: 3.744rem;
        background: url("/images/result.png") no-repeat center center;
        background-size: cover;
    }
    .ibox{
        background-color: #fff;
        overflow: hidden;

    }
    .ibox img{
        width:0.2496rem;
        margin-right:0.12rem;
    }
    .ibox-line{
        background-color: #84d7fe;
        height: 0.14400000000000002rem;
        border-top-left-radius: 3px;
        border-top-right-radius: 3px;
    }
    .ibox{
        line-height: 2em;
    }
    .btn-block-area{
        padding-bottom: 2rem;
    }
</style>
{/block}
{block name="content"}
<div class="banner">

</div>

<div class="panel">
    <div class="ibox h2 border-l border-r">
        <div class="ibox-line"></div>
        <div class="ibox-content border-b panel">
            <div class="ibox-item">
                捐赠项目：珊瑚公益
            </div>
            <div class="ibox-item">
                捐赠金额：<span class="text-primary">{$m.money}</span>元
            </div>
            <div class="ibox-item">
                捐赠时间：{$m.create_time}
            </div>
            <div class="ibox-item">
                善款接收：广电公益基金会-珊瑚公益基金
            </div>
        </div>
    </div>
</div>
<div class="panel" style="padding-top: 0">
    <div class="ibox h2 border-r border-l">
        <div class="ibox-line"></div>
        <div class="ibox-content">
            <div class="ibox-title border-b">

            </div>
            {if $m.coral_num gt 0 or $m.corals_num gt 0}
            <a class="flex border-b panel" href="{:U(($m.corals_num>0?'coralReef':'coral').'/index')}">
                <img src="/images/icons/nameright.png" alt="">
                <div class="flex-con">
                    {if $m.coral_num gt 0}
                        {$m.coral_num}株珊瑚的命名权
                    {else/}
                        {$m.corals_num}株珊瑚礁的命名权
                    {/if}
                </div>
                <div class="icon icon-next"></div>
            </a>
            {/if}
            {if $m.certificate_num gt 0}
            <a class="flex border-b panel" href="{:U('love_certificate/index')}">
                <img src="/images/icons/card.png" alt="">
                <div class="flex-con">
                    爱心电子证书
                </div>
                <div class="icon icon-next"></div>
            </a>
            {/if}
            {if $m.luck_count gt 0}
            <a class="flex border-b panel" href="{:U('luck/index')}">
                <img src="/images/icons/cj.png" alt="">
                <div class="flex-con">
                    幸运转盘抽奖机会
                </div>
                <div class="icon icon-next"></div>
            </a>
            {/if}
            <a class="flex border-b panel" href="{:U('index/power')}">
                <div class="flex-con text-primary">
                    查看我的权利
                </div>
                <div class="icon icon-next"></div>
            </a>
        </div>
    </div>
</div>

<div class="btn-block-area panel">
    <a class="btn-primary btn-block btn-rounded" href="{:U('comment')}">
        我要留言
    </a>
</div>
{/block}